package com.tbvtc.agriculturalcreditchainserver2025.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 摄像头农作物关联表
 * </p>
 *
 * @author syh
 * @since 2025-05-09
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("camera_crop_mapping")
public class CameraCropMapping implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 摄像头id
     */
    @TableId(value = "camera_id", type = IdType.AUTO)
    private Long cameraId;

    /**
     * 农作物id
     */
    @TableField("crop_id")
    private Long cropId;


}
